/*
 * Copyright (c) 2011-2021, baomidou (jobob@qq.com).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.baomidou.mybatisplus.extension.plugins.handler;

import com.baomidou.mybatisplus.core.toolkit.mapping.ParameterValueMapping;

import java.util.List;

/**
 * 清理缓存处理器
 *
 * @author hejianxiong
 * @since 3.5.7 +
 */
@FunctionalInterface
public interface ClearCacheHandler {

    /**
     * 参数处理业务逻辑
     *
     * @param mappedStatementId         Mybatis MappedStatement Id 根据该参数可以判断具体执行方法
     * @param parameterValueMappingList Mybatis拦截器参数key、参数value、列名、表达式对象
     * @return 执行结果
     */
    String clearCache(String mappedStatementId, List<ParameterValueMapping> parameterValueMappingList);
}
